﻿@model Downloader.Framework.Queries.RecordList<Downloader.Web.Controllers.ViewModels.ArticleContentViewModel>
<table id="tbdatalist" pageindex="@Model.PageIndex" pagecount="@Model.PageCount" pagesize="@Model.PageSize"  class="tableBorder tableBorder-thcenter" width="100%" cellspacing="0" cellpadding="0" border="1">
    <tr  class="color1">
        <th>
            序号
        </th>
        <th>
            key
        </th>
        <th>
             标题
        </th>
        <th>
            副标题
        </th>
        <th>
            介绍
        </th>
        <th>
            操作
        </th>
    </tr>
    @{ 
        var i = 0;
        foreach (var category in Model.Data)
        {
                <tr class= "color@((i+1) % 2+2)">
              
               <td>@(i + 1)
               </td>
               <td>
                   @category.Id
               </td>
               <td>@category.Title
               </td>
               <td>@category.SubTitle
               </td>
               <td>@category.Introduction
               </td>
               <td>@Html.ActionLink("编辑", "Edit", "Article", new {id = category.Id}, new {@class = "edit"})
                   @Html.ActionLink("删除", "Dele", "Article", new {id = category.Id}, new {@class = "dele"})
               </td>
           </tr>
            i++;
        }
    }
</table>
